Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a formula to gross up payroll?
Message
De
28/08/2009 23:41:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/08/2009 12:32:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01421471
Message ID:
01421652
Vues:
58
>>newrgross = g / ((g-(g *r))/g)
>>
>>Maybe some math types can simplify that, but I think it will work

Sure, here is the simplification. The original formula:

g / ((g-(g*r))/g)

Put the last g into the numerator:

g^2 / (g-g*r)

Take out the factor g, from numerator and denominator:

g / (1-r)

Which is the formula Sergey indicated.

The derivation of the simpler formula is as follows. When we have pay a tax, have a discount, etc. on a known number, we take, for example, 5% away (r = 0.05), and keep 95% (1 - 0.05) of the original amount. So we basically multiply the known (higher) amount by 0.95. If it is the lower (discounted) amount we know, we proceed the opposite way - and the opposite of multiplication is division - so you simply divide by 0.95 (or (1-r)). This can easily be proved with algebra, but I'll omit that part for now.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform