The cellValue() method can't put a formula; cellFormula() is available for the job.
Beware, the calculation formulae are not covered by the OpenDocument specification, so the syntax depends on the software which will be used to display the document. As an example, the following code works if the target table belongs to a text document to be displayed with OpenOffice.org Writer:
(4)
]
