formula to calculate depth at vertical sections