add print_max_day for hitory