Q:

If user value price percentage is 30% less than inputted value

Okay I am trying to work out a math equation in PHP with no avail. Here's what I am trying to accomplish.
$staticprice = '345.00'; //always the same
$uservalue = $_POST['value'];
if($uservalue is 30% or less than $staticprice){ die();}

So I don't want user's value to be 30% or less than the static price.
How would I go by accomplishing this?

A:

if($uservalue <= ($staticprice * 0.3))
   die();

Something like this?

