Expand my Community achievements bar.

percents

Avatar

Level 4

I don't have alot of experience with javascript but I would like to have a calculation event that will display a percentage.

e.i.

A person will get paid byweekly (80 hrs)

I would like for the customer to enter amount of hours worked - 4 (or any number)

and the percentage field to show - 5%

if i were using a calculator I would just calculate number of hours divided by 80 x 100 - but how do I put that in a script?

Thanks

2 Replies

Avatar

Former Community Member

field that holds the percentage.rawValue = (number of hourse field.rawValue / 80) * 100

Paul