thamara / time-to-leave

Log work hours and get notified when it's time to leave the office and start to live.
http://timetoleave.app
GNU General Public License v3.0
463 stars 272 forks source link

Ticket #1075: Accounting for allotted break time in estimated time to leave #1083

Open yellowstrings opened 1 month ago

yellowstrings commented 1 month ago

Related issue

Closes #1075

Context / Background

What change is being introduced by this PR?

How will this be tested?

I tested my code manually by changing the break interval and working hours in my user settings. Below are the results:

Before any break is taken, based on an 8 hour work day

Screenshot 2024-10-16 at 12 30 51 PM

After a longer than expected break, based on an 8 hour work day

Screenshot 2024-10-16 at 12 31 06 PM

After a shorter than expected break, based on a 7 hour and 15 minute work day

Screenshot 2024-10-16 at 12 51 06 PM