consolidate rate_decay computation