Convert to nanoseconds for two Duration parameters

Fixed #14