Needing Help with fee:conditional and charge:conditional for public parking facility

I am trying to specify the parking fees for a local parking facility. The fees are as follows:

<2 hours stay = free
after that = 0.50 EUR/hour
day pass = 3 EUR
week pass = 7.50 EUR

Fees are only due within following time periods:
Mo-Th 06:00-23:00, Fr-Sa 06:00-01:00, Su and PH 09:00-23:00

How to best tag this mess?

My attempt looks like this but it produces a warning in JOSM for the fee:conditional and charge:conditional tags:

fee=no
fee:conditional=yes@ stay > 2 hours AND (Mo-Th 06:00-23:00, Fr-Sa 06:00-01:00, Su 09:00-23:00; PH 9:00-23:00)
charge=0.50 EUR/hour
charge:conditional=3.00 EUR/day @ stay > 6 hours; 7.50 EUR/week @ stay > 2 days

I’m especially unsure on how to tag the weekly and daily amounts.

fee:conditional looks fine to me. Maybe it complains about the missing space between yes and @?

Do you have to specifically buy the day/week pass? Then it’d be clearer to tag it like 3.00 EUR/day @ daypass; 7.50 EUR/week @ weekpass
If it’s automatic, you can leave it like you did. Not sure what JOSM complains about.

The weekpass has to be bought seperately via a dedicated button. The daypass is probably calculated automatically from the estimated stay duration the customer has put in (it’s paid upfront). I only took a picture of the machine - I didn’t try it out. i’m also unsure if it’s even possible to purchase two daypasses at once - that is just an assumption.

the missing space wasn’t the issue. It says “error in fee:conditional-value: doesn’t conform to the pattern ‘restriction-value @ condition’”

I found OSM Conditional Restrictions as an online tool to create conditional restrictions and it works just fine, so I’d just ignore JOSM at this point.

As to the passes, I’d just add it with the daypass/weekpass conditions and leave it to others to check if a valid daypass has been purchased.

alright, sounds sensible. Thanks!