California late filing penalty

Still not clear on how this works, law wasn’t written by human beings.  If I file late, after the automatic extension, do I owe penalties(5% per month) on the taxes(total taxes), or on the tax still due(taxes minus any withholding or payments made prior to the original April 15th due date)?

So I’m owed a refund is the penalty zero?