change to use "time.Duration" and "time.Time".