Can I point out two things:
1. The +30 and -365 are inaccurate anyway. Not all months have 30 days and a leap year is 366 days. You can worry about getting the correct calculations later. Just sort out the logic first.
2. Is it this
1. The +30 and -365 are inaccurate anyway. Not all months have 30 days and a leap year is 366 days. You can worry about getting the correct calculations later. Just sort out the logic first.
2. Is it this
Or thismotexpiry date is null, is today, is within 30 days after today or is in the past.
OR
insuranceexpiry date is null, is today, is within 30 days after today or is in the past.
OR
cowensform field is null.
Or this(motexpiry date is null, is today, is within 30 days after today or is in the past.
OR
insuranceexpiry date is null, is today, is within 30 days after today or is in the past.)
AND
cowensform field is null.
?(motexpiry date is null, is today, is within 30 days after today or is in the past.
AND
cowensform field is null)
OR
(insuranceexpiry date is null, is today, is within 30 days after today or is in the past.
AND
cowensform field is null)