timeframe conversion - unfinished