debugging next day calc