refactored season length calculation for consistency