draftply Download

When Can I Leave Today?

← All samples

leave-time.dplyEditor
1---
2app_version: 0.5.0
3precision: 2
4live: true
5form_title: When can I leave today?
6form_description: Enter when you started and how long your breaks are — see how much you have worked so far, when you can leave and how much is still to go. Updates every minute.
7form_inputs: #Settings|collapsed, Started at|start, Breaks|pause{min}, Daily target|target{h}, Flexitime before today|balance{h}
8form_outputs: Worked so far|worked, Leave at|leave, Still to go|remaining, Flexitime after today|balance_after
9---
10# When can I leave today?
11// This sheet runs live: lines with `now` update every minute. The clock
12// icon next to them switches that on and off. This notebook also has a FORM
13// (Pro): Form → Form view for an input mask.
14
15# Your day
16start = 8:12 // when you clocked in
17pause = 45 min // breaks taken or planned
18target = 8 h // contracted hours per day
19
20# Right now
21worked = now - start - pause
22leave = start + target + pause
23remaining = leave - now
24"Worked so far": worked
25"Leave at": leave
26"Still to go": remaining
27
28# Flexitime
29// Your balance before today, from your time sheet.
30balance = 2.5 h // 2 h 30 min
31balance_after = balance + worked - target
32"Flexitime after today": balance_after
33// Negative "still to go" means you are already past your target.
34