Draft angle calculation code.