Define hard deadline and soft deadline