UE5 division (whole and remainder) math not correct

Can you share a screenshot of the whole functionality being used? It is hard to say what is happening in code without it.