For MMs I've always gone with something like 100m of climb = 1km of flat, so 2km of flat running might be 12 minutes and 1km with 100m climb about the same. It's only ballpark and the terrain makes a huge difference, but it's easy to work out on the fly and add/subtract time as appropriate.