3 Variable Calculation on Invoice

For Recruitment business, there are 3 variables to arrive at the final invoice value. For Ex. No. of resources, Salary per month and Service Charge percentage. At present We are unable to accomodate the calculation at the current 2 variable calculation.