question on algorithm for radius based accouting