Payment modalities based on percentages

I was thinking about how to implement the option that allows three payment modalities based on percentages so that the client according to the total amount of the quote can pay in 2 parts at the start and at the end of the project.

40/60%
50/50%
60/40%