[Help] Decrementation of variable

[Help] Decrementation of variable

Hello, 

I've create a form to save date. It's for administration, In new form client can select a date from save data of first form. 

I want create a field "Quantity" in administration form. And in the client form i want decrementation the quantity and if she is"0" the date is hide. 

Have a tutoriel or an idea of it will work ? 

Thank you, Josselin