Simplify calculation
Use time.Duration for ProducerConfig.Timeout