What is the formula to calculate the gross price (brutto) from the net price (netto) with a 20% tax rate in PHP?

To calculate the gross price from the net price with a 20% tax rate in PHP, you can use the formula: Gross Price = Net Price + (Net Price * Tax Rate) Here is the PHP code snippet to calculate the gross price from the net price:

$netPrice = 100; // Net Price
$taxRate = 0.20; // 20% tax rate

$grossPrice = $netPrice + ($netPrice * $taxRate);

echo "Gross Price: " . $grossPrice;