There is no exact time to when you will get over someone.
It all depends on how you handle the situation and how things ended between the two of you. These things play out differently for everyone.
When something like this happens, you might want to take some time to yourself and just reflect on your life. It is annoying when people around you tell you that time heals all wounds, although honestly, it really does. You might not heal completely, but it will be bearable and that will be much better compared to how it was before. Some will start telling you about their experiences just to make you realise that in the end, you will be okay.
It all depends on how things went about the two of you and how bad the breakup was. It will not be overnight, but eventually you will be able to deal with it. When that person is brought up in a conversation, it will not hurt like it did before. That is when you will know that you are slowly healing from that experience. This is the one thing that you cannot speed up. Someone can tell you that it took them a month and you expect the same to happen to you, however it will not be the case.
You need to accept what has happened and deal with it. There are ways that people can get over that special someone. You can surround yourself with loved ones so that there are people close to you, who will help you heal. Go out with them and try not to constantly fantasise about your life with that person. If getting a hobby helps, do so. Or rather, how about you join the gym as it is something that you have always wanted to do.