for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Payments\Utility;
/**
* Class FeeCalculator
* @package ByTIC\Payments\Utility
*/
class FeeCalculator
{
* @param $amount
* @param $percentage
* @param $fixed
public static function netToGross($amount, $percentage, $fixed = 0)
$result = ($amount + $fixed) / (1 - $percentage / 100);
return ceil($result);
}