Entity numeric value plus 1

Im using the flair integration to control vent in my house. What I would like them to do is slowly close as the get closer to the room setpoint. I would like to set it for if current room temp is 1 degree higher then that room setpoint open vent to 25%, 2 degrees higher 50% 3 degrees 75%. Any ideas on the most effective way to set this up?