calculate.env