california state tax on ira distribution (no penalty)

We withdrew IRA money (both over 59.5 yrs) for educational expense and thought we didn't have to pay taxes - stupid me.  Federal is handled by TT but CA State asks for a ridiculous calculation based on how much state is vs federal - which I paid neither.  So how do I compute the correct CA state taxes?  Thanks in advance.