Product option selection in Number field formula

I have some products with options; most of them are like this:
Prod 1

  • P1 monthly: 10 euro
  • P1 onetime: 20 euro

Prod 2

  • P2 monthly: 11 euro
  • P2 onetime: 22 euro

I need to have 2 totals, “Montly total” and “One time total”
So the problem is that I can’t select the product options in the calculation.

Example1 : If I select “P1 Monthly” and “P2 Onetime” in my totals I should have
“Montly total = 21 euro” and “One time total = 0 euro”

Example2 : If I select “P1 Monthly” and “P2 Monthly” in my totals I should have
“Montly total = 10 euro” and “One time total = 22 euro”

How can I achieve this? Do I need an extra plugin?

Got a form export? I’d like to better visualize your setup.