double durationToWeekOffset(Duration duration) { final inWeeks = duration.inDays ~/ 7; return inWeeks * weekWidth; }