This version fixes thread group duration calculation when using complex jmeter expressions.
Additionally, this version simplifies jmx2dsl conversions of thread groups using JMeter expressions, sacrificing a little on accuracy in favor of simplicity and maintainability of generated DSL code.
Thanks to @uddirulz who reported the issue.