I was trying to use the rules and not a script.
.
But here is a JS i would use as a Trigger in scripts.
var e = entry();
// Only run if Priority is High AND Due Date is empty
if (e.field("Priority") === "High" && !e.field("Due Date")) {
var d = new Date();
d.setDate(d.getDate() + 9);
// Strip time (date-only field)
var dateOnly = new Date(d.getFullYear(), d.getMonth(), d.getDate());
e.set("Due Date", dateOnly);
}
Thanks