fix rate interval calculations