Arduino: incorrect calculation of long integer
In your #define of B you missed parenthesis (). Change your definition to:

#define B      (A * 62)


Without parenthesis you first divide 6200000 by 200 and then multiply result by 62, which is not what you intend.