Time:04-21
very new to app script but well versed in formulas and so up-skilling.
For reference I've made a test sheet
Page link:https//www.codepudding.com/Blockchain/379335.html