pub fn calculate_next_era_and_period(era: u16, period: u8) -> Option<(u16, u8)>
Calculates the next era and period of the given period.