timo
You could have a tag like modify hourly rate that has a condition on it and a variable multiplier
If. >X hours (RegularTimeHours),
Then use a multiplier (M) on the exceeding amount of time
WorkUnitTotalTime - RegularTimeHours = OvertimeHours
EarningRate * M = OvertimeRate
OverTimeHours * OverTimeRate = OverTimeEarning
RegularTimeHours * RegularRate = RegularTimeEarning
RegularTimeEarning + OverTimeEarning = DayEarning
Lets say you set 8 hours in the condition and 1.5 in the multiplier variable and you earn 20$/H
Example
So if you do 10 hours it deducts that standard working time of 8 hours and then multiplies earnings on that 2 hours balance with a user set variable multiplier.
Lets set 1.5 as multiplier
1.5 * 20$/H =
WorkUnitTotalTime (10) - RegularTimeHours (8) = OvertimeHours (2)
RegularEarningRate (20$/H) * M (1.5) = OvertimeRate (30$/H)
OverTimeHours (2H) * OverTimeRate (30$/H) = OverTimeEarning (60$)
RegularTimeHours (8H) * RegularEarningRate (20$/H) = RegularTimeEarning (160$)
RegularTimeEarning (160$) + OverTimeEarning (60$) = DayEarning (220$)
The multiply variable part is already there, it is just missing the condition (if > X hours) to apply the rate on whatever extra hours on a task (do not reset @ midnight if continuous task passed midnight.
I would love that
Android 2.12.8
