Use datutils for calculating mondays

@robyoung
@maxfliri
function to calculate week start and end

@robyoung
@maxfliri
Move time series logic to timeseries function

@robyoung
@maxfliri