modify time calculate