I think easiest way is to input the vacation allowance into a table and use the vlookup function to retrieve the vacation days. Please see attachment.

Vacation days lookup.xlsx