Examples
Examples
Try the starting example
- User task JSON [ID,last done day,interval days,supply qty per occurrence,supply item/unit ID]
- [["feed",0,1,2,"feed portions"],["check",0,3,1,"test strips"]]
- Absence first elapsed day (days)
- 1
- Absence last elapsed day inclusive (days)
- 7
- Dated task checklist [day,task,quantity,supply item]
- [[1,"feed",2,"feed portions"],[2,"feed",2,"feed portions"],[3,"check",1,"test strips"],[3,"feed",2,"feed portions"],[4,"feed",2,"feed portions"],[5,"feed",2,"feed portions"],[6,"check",1,"test strips"],[6,"feed",2,"feed portions"],[7,"feed",2,"feed portions"]]
- Supply quantities by exact supplied item/unit ID
- {"feed portions":14,"test strips":2}
- Total task occurrences
- 9
Try another scenario
- User task JSON [ID,last done day,interval days,supply qty per occurrence,supply item/unit ID]
- [["feed",0,1,2,"feed portions"],["check",0,3,1,"test strips"]]
- Absence first elapsed day (days)
- 1
- Absence last elapsed day inclusive (days)
- 10
- Dated task checklist [day,task,quantity,supply item]
- [[1,"feed",2,"feed portions"],[2,"feed",2,"feed portions"],[3,"check",1,"test strips"],[3,"feed",2,"feed portions"],[4,"feed",2,"feed portions"],[5,"feed",2,"feed portions"],[6,"check",1,"test strips"],[6,"feed",2,"feed portions"],[7,"feed",2,"feed portions"],[8,"feed",2,"feed portions"],[9,"check",1,"test strips"],[9,"feed",2,"feed portions"],[10,"feed",2,"feed portions"]]
- Supply quantities by exact supplied item/unit ID
- {"feed portions":20,"test strips":3}
- Total task occurrences
- 13
Calculation method
Calculation method
Dated task checklist [day,task,quantity,supply item]
Generate lastDone+k*interval within inclusive absence dates, k>=1; sort by day then task.
Supply quantities by exact supplied item/unit ID
Sum each occurrence quantity grouped by identical item/unit ID.
Total task occurrences
Count generated checklist rows.
Symbols and units
- a
- User task JSON [ID,last done day,interval days,supply qty per occurrence,supply item/unit ID]
- b
- Absence first elapsed day (days)
- c
- Absence last elapsed day inclusive (days)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Recurrence and inventory arithmetic for owner-defined tasks; no feeding, chemistry, livestock or testing interval advice. Day offsets avoid timezone and daylight-saving assumptions. Supported limits: 1..100 tasks; integer lastDone<=absenceStart; interval>=1; 0<=start<=end<=366; nonnegative quantities; distinct task IDs; supply IDs must distinguish incompatible units.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.