debug formula