pub fn date_to_serial_number(
    day: u32,
    month: u32,
    year: i32
) -> Result<i32, String>