calculating diagonal for batter boards