fixes for long period
getGrit optimization: remove getOffset calling for each day