Correct the size of the calculate flags form instead of hardcoding a minimumsize and maximumsize