Colored row of custom doctype on list view

please help me,
i made a custom form for machines, each item have a date for calibration. so i need the row automatically red colored as a notification for calibration 1 month before.
example : the date entered is 01/6/2019
i need the row be colored or showing notification at 01/05/2019 till update.
i see on erpnext colored points used on invoices . this can be useful just give me the exact script