How to add two times in terraform?

You can use terraform timeadd() function to add two times in terraform. timeadd() adds duration to a timestamp, returning a new timestamp.

Syntax: timeadd(timestamp, duration)

Examples: