. . . my case is going to hearing . . . judge will decide what to do and I also asked can I withdraw my application before it goes to hearing and she said yes.
I will try to offer a more in-depth response later. For now . . .
I do not try to give advice, but if this is headed to a hearing with a Citizenship Judge (note: there is a chance it might not be), to withdraw and re-apply, as previously discussed, seems the way to go.
Talk to your lawyer, of course.
No fight necessary if you withdraw and re-apply (assuming you meet all the requirements as of when you make the new application).
As noted, however, there is a chance this application will not actually be referred to a Citizenship Judge for a hearing, that a Citizenship Officer will review the case and conclude you actually did meet the physical presence requirement and schedule you for the oath. Frankly that seems unlikely to me (but that gets into a very LONG STORY).
BUT if all your dates are correct, including the status, application, and travel dates you used in your manually done presence calculation (the one you linked here), if these are complete and correct, and these are in agreement with the processing agent's understanding, whether you do the calculation manually or you use the online calculator (it works), the presence calculation adds up to 1095 days total: 365 days for TR or PP credit. Plus 730 days presence as a PR.
Which might lead to being approved, not a CJ hearing.
Which, again, frankly, does not seem likely. I do not know for sure. Not even close. I will try to come back and explain, for what it is worth.
If you are sure this is headed for a CJ hearing, yeah, withdrawing and re-applying seems the way to go. At the least the faster way to get to the oath. And perhaps the ONLY path to becoming a citizen.