Case study · Family law
A custody schedule planner with a custom calendar component in Retool
A family law team needed to build child custody schedules and count exactly how many nights a child spends with each parent. The counting rules are strict, and getting them right by hand in a spreadsheet is slow. We built a Retool app around a custom calendar component that applies the rules, shows the year at a glance and saves every version of a plan.
The challenge
What wasn’t working
Custody rotations come in many patterns: every other weekend, first and third weekends, alternating fifth weekends, week on and week off, and more. Each one also has its own weekend shape.
The rules are precise. Nights count at the secondary parent’s home, the drop-off day never counts, weekends are numbered from the first Friday, and the year runs August to July.
Holidays alternate between A and B sets by year and override the normal rotation, and custom events override the rotation too.
The solution
What we built
Custom calendar component
A month grid colored by parent and holiday, with a side panel of overnight counts. It sends the summary and report back to Retool.
Rotation engine
A JavaScript transformer that parses the rotation, numbers weekends from Friday, tracks alternating fifth weekends and gives every night to exactly one parent.
Holidays and events
A holiday library split into alternating A and B sets, plus custom overnight events and daytime visits. Only overnights count toward the totals.
Live summary
Nights and hours per parent, with each parent’s share of 365 nights, updated as the plan changes.
Saved versions
Plans saved with a label and notes, searchable and soft-deleted, so earlier versions are never lost.
Reports and output
Saved reports of each parent’s days and holidays, with print, export and import.
How it works
How a plan is built
- 1
Set up the rotation
Choose the child, both parents, the start date, the rotation and the weekend shape.
- 2
Add holidays and events
Apply the holiday set and add custom events or daytime visits.
- 3
Rules are applied
Holidays come first, then custom events, then the weekend rotation.
- 4
Review the counts
The calendar and summary show nights per parent and their share of the year.
- 5
Save and share
Save the version with notes, then print or export the report.
Screens
Inside the build
Real screenshots from the project. Client names, logos and personal details are blurred.

The result
What changed
- Custody plans built and compared without spreadsheets
- Night counts follow the same written rules every time
- Every version of a plan is saved with its notes
- Reports ready to print or export for the case file
More work
More case studies
Have a project like this?
Tell us what you need to build. In 30 minutes we’ll map what to build first and follow up with a fixed-scope estimate.
Official Retool Agency Partner5.0 on Clutch, 9 reviewsBuilding software since 2015Reply within one business day