rf calculations