You can run the numbers out: time to climb, ground speed, fuel flow rates etc but we've found the fifty mile rule works pretty well.
If your going less then fifty NM a large climb's not worth it, over 50 it is.
This obviously disregards winds and required climbs.