append div with discount times
discount time loop refactor and AM PM function