Adding max (modulo) values for each time input.