0

I would like to calculate the number of different types of days i can have that equal my set value.
For example, if someone has 30 days annual leave as part of there employment i would like to calculate what different sorts of holiday they could take.
An example would be:
5, 10, 5, 2, 2, 1,...