Display timeframe from api in template