fn ceil_to_boundary(time: i64, anchor: i64, interval: i64) -> i64
Computes the ceiling of time to the next schedule boundary aligned with anchor + k * interval. All values are Unix timestamps in seconds.
time
anchor + k * interval