This is just a post for thinking out loud with ideas/frameworks.
The main idea is just to be able to go to a simple page, put in your annual salary or hourly wage and have it start a counter showing how much money you've made per second. You ask why? I ask why not?
For right now its just a gimmicky ephemeral thing where it only runs so long as it's up, no real database or anything.
If I were to do it proper it would have a way you could sign in, would have a fancy dashboard, include deductions and run real time and possibly sync with time cards. This really is something that would be better integrated with some kind of company time card keeping service but I'm just doing this for fun to learn a few things.
Variables List:
Variables:
Salary
- AnnualSalary: X
- SalaryWeekly= AnnualSalary/52
- SalaryHourly= SalaryWeekly/40
- SalaryMinute= SalaryHourly/60
- SalarySecond= SalaryMinute/60
- SalaryMillisecond= SalarySecond/1000
Deductions:
- Federal Income= X
- Social Security= X
- Medicare = X
- State Income = X
- Workers Comp = X
- 401K Before Tax= X
- 401K After Tax = X
= Sum of Deductions / Weekly Salary
Example JSFiddle Counters:
http://jsfiddle.net/henser/qvp2c0ya/1/
https://jsfiddle.net/cdr4fzg3/
https://jsfiddle.net/wizajay/rro5pna3/
http://jsfiddle.net/wigster/s9tcd8sv/
http://jsfiddle.net/gcjysczj/