fixed quarter calculation in intervals