function Purchase() {
var ss=SpreadsheetApp.getActive();
var sheet=ss.getSheetByName("Buy");
var Cvalues=sheet.getRange(2,3,sheet.getLastRow()-1,1).getValues();
var Avalues=sheet.getRange(2,1,sheet.getLastRow()-1,1).getValues();
var results=[];
for(var i=0;i<Cvalues.length;i++){
if(Cvalues[i][0]<=-3){
results.push(" "+ Avalues[i]);
results.push("Price "+ Cvalues[i]);
MailApp.sendEmail('<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6d08000c040a11141357171b1318961e1018">[email protected]</a>', 'Purchase Alert',results.join("\n"));
}
}
}
What additional code needs to be added to run this function during weekdays business hours between 10 AM and 5 PM every hour?