I am building a payroll system. My problem is if the employee's salary changes twice or thrice in a same month. If the:
1st period is x 2nd period is y
then can I say annual income from 1st period is x*24 since there are 2 splits?
Similarly, will the annual income for second period be y * 24? I can also do (x+y)*12.
I also need to calculate taxes for both of these cases.
What is the best way of doing this?