pub fn ceil_to_boundary(time: i64, anchor: i64, interval: i64) -> i64
Ceils time to the next anchor + k * interval boundary.
time
anchor + k * interval