Calculate happy case working
Refactoring into check operator function
math_it_up refactoring. Modulus operator instead of XOR.