Wix Bookings: Can I code the deposit recalculating as percent of total price on checkout?

Our services are “varied prices” Price type and “online deposit and the rest in person” Payment preferences.

So for one service we have e g three prices. But in Service settings we can set only one fixed deposit size.

From our business perspective, we need the deposit to be a percent of price option. With 10% deposit rate, if Price option is 2000 - deposit is 200, if 1100 - deposit is 110 etc.

Is it possible to hook or something the data, that wix populates into the Service Details form on a checkout page in order to calculate the deposit size as we need it?