The stored energy in the capacitor can be expressed in terms of the work done by the battery. Here is the Capacitor energy formula which will guide you to calculate the energy stored in a capacitor on your own. As per the energy in the capacitor formula, multiplying the product of capacitance and voltage squared value with 1/2 gives the energy stored in the capacitance. The value of achieved result will be dependent on the unit of input you substitute in the formula.
The Capacitor energy formula in this page is a simple formula that needs only basic multiplication and division operation to get the energy stored in the capacitor.