Fixed backlog frequency calculator code for realtime changes