Use Lots = Max(100, blabla); wheras you calculate your lotsize in the second part, but limit it to the max of 100.