how to calculate curved staircase - Search