https://kaimany.ucoz.ru/_ld/0/39_calc_bah.html