Documentation
1
2
3
4
5
6
7
8
pub fn should_send(n: u64) -> bool {
  match n {
    0..=9 => n == 3,
    10..=70 => (n - 10) % 20 == 0,
    71..=1540 => (n - 70) % (4 * 60) == 0,
    _ => n % (24 * 60) == 0,
  }
}