How do i add a formula to my product page

I would like to add a formula to my product page, it should calculate the price of a bottle.

price per case / bottles per case

is this possible, attached is what i was thinking

Hi @timconroy
Simply you can create a metafield and put that information there and use the metafield like

{{product.metafields.custom.your_formula.value}}

You can use a single line metafield
here custom.your_formula is namespace.key of the metafield
Thanks!