Does the underpayment penalty include the amount of the underpayment?Can I find out the amount to pay it?How do I avoid an underpayment in the future?

I need to avoid an underpayment penalty in the future? How do I figure out what to do?