conditions are first set, for example, the size of the field is 27 * 22 (x * y), n=3 step either up or to the right, d=4 diagonal, and so here is the winning strategy for the one who goes second
Your calculations are generally correct. And the specified financial calculator does not work, maybe you should look for another one