Correcting code to prevent deprecation warning

Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).