pub fn format_period(per: (u64, u64)) -> String