Hello.
There is a formula

How to calculate it in php?
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
The solution is:
$x = 100; $y = 3; $h = 2; $out = round($x*(pow(1.8, $h*$y)),2); echo $out; // выводит 3401.22 Read about the exponentiation here , all actions are standard.
Source: https://ru.stackoverflow.com/questions/417318/
All Articles