If this is an NY dealer, doc fees are capped at $75. Maybe it’s $250 including DMV like your first quote.
But instead of fighting line by line, a discount of 10% before the $500 rebate gets you to $238 all inclusive of 8.875% tax and $250 combined doc/dmv fees with $238 DAS.
NB: When using the LH Calculator: Tax needs to be the second button (it clearly indicates states such as NY should use the second button).