Added dropdown for duration selection.
Removed extra interpolation
Fixed the select expression.