Hello all,
The scenario is associate starts working in night shift at "03-05-2021 23:23" to "04-05-2021 06:40" if the working hours are between 23:00-06:00 then that time should be counted towards night shift hours and rest are day shift Hours, and the break time is 30 mins if total hours grater than 6 hours.
i have made the calculations all in Double format,
but there is 0.01 diff when the calculations are converted to fixed Decimals How to avoid that differences, here. while calculating
?
The output I got is
| Total Hours 7.28 | Day SHift Hours 0.67 | Night Hours 6.12, and break 0.5 |
There is 0.01 diff when total hours - (day hours + night Hours + break)
Any leads on this please!