Changed seconds to round to nearest, instead of rounding down