min and max in comment
time diff
find time, set ranges
set constants