clamp input
go back and forth to reach more timespans