Net to base/gross pay calculator

Is there a Net to Gross Pay calculator somebody has worked on?

I would like to have input a net pay and the reverse calculations for taxes based on salary periods/salary components can be done to indicate what should be the gross pay/base.

Several small companies work with take home salary as a starting point and work backwards to the payroll allowance/deduction/tax calculations.