Stair Calculator Formula