pub fn millis_until_next_rotation(next_rotation: u64) -> u64
Calculate the time in milliseconds until the next_rotation, given as a timestamp. next_rotation here represents a timestamp in UNIX epoch format.
next_rotation