Calculator calculates ladder