pub fn team_phase_offset_for(
team_id: u32,
cycle_length: u32,
total_teams: u32,
) -> u32Expand description
Team phase offset in days.
For a 42-day, 6-team cycle, each team is offset by 7 days:
use shift_algorithm::team_phase_offset_for;
assert_eq!(team_phase_offset_for(1, 42, 6), 0);
assert_eq!(team_phase_offset_for(2, 42, 6), 7);
assert_eq!(team_phase_offset_for(6, 42, 6), 35);§Panics
Panics if total_teams == 0 or team_id == 0.