Merx::calculateTax()
Calculates tax amount from gross price and tax rate
Merx::calculateTax(float $grossPrice, float $taxRate): float
Parameters
| Name | Type | Default |
|---|---|---|
$grossPrice |
float |
- |
$taxRate |
float |
- |
Return type
float
Description
E.g. calculateTax(200, 0.19) → 31.932773109243698