Just received underpayment penalty notice from New Jersey, how to double check penalty and also avoid this next year?

Received a notice from the state indicating installment interest due because of underpayment (my firm didn't withhold my NJ taxes because I work in Manhattan). I wasn't sure how to check if this amount is accurate and also how to avoid this underpayment penalty next year (same situation applies as last year)?