Where is you agent in all of this?
My advice is call both your agent and your attorney and tell them that unless they tell you that they have allowed you to breach the contract by not terminating in a timely and appropriate manner that you expect your earnest money deposit refunded and delivered to you within the next 48 hours. Let them know this isn't up for discussion.
If they tell you that you did not terminate the contract appropriately I would suggest you let them know that the reason you hired them to begin with was to look after your interests and that apparently they failed to do so and that unless they are prepared to reimburse you immediately that they have given you no option other than to file a formal complaint with the NY State Real Estate Commission, and Bar Association. In addition let them know that as soon as you hang up you'll be contacting the State Attorney Generals office and filing a compliant. Then I would do exactly that.
You need to be certain that you are in the right, did you terminate in a timely manner as spelled out in your purchase contract? Did you apply for the amount the contract stipulated or a different amount.? While your agent and attorney should have been there to make sure you did everything right, you're an adult, and bear responsibility as well. You want to be sure you did what was required before you start filing complaints, however if you did do things in the proper contractual manner then it's time to force the issue. If you do find yourself having to force the issue do your'self a favor and don't think about using the same agent and attorney again as they will have shown themselves to be unprofessional as well as incompetent.
Again Your Attorney should have the answer.
As long as you have complied with the terms of the Contract and the Seller doesn't feel he has any claim to the money it should only take a week or two.