I am trying to convert encoder reading into X & Y.
How? Why? The encoder is telling you how many times the motor has turned. That tells you nothing about how much the wheel has slipped on whatever surface you are running on.
Hi, the article you have cited uses a two wheel differential drive and a front jockey wheel.
Your four wheel unit, because it has no steering wheels, relies on slip to turn.
The two systems are totally different when it comes to what you want to accomplish.
I suggest you make it a similar device to the cited article, as it will be a smoother and more maneuverable robot.