Hi Aditya,
you can easily validate the dueDate like: $currentDate < $DueDate (expecting both variables being a dateTime)
In addition, Mendix has quite some functionality when it comes to date functions you can use in order to calculate with different days , hours, minutes, etc, according to the examples on the links below: