How to deny form submissions when meals requested exceed days of stay

How to deny form submissions when meals requested exceed days of stay