I have a SharePoint list that has projects and project totals PROJTOT

I have another SharePoint list that has roles and hours for those projects PROJDETAIL

When the users add rows to the SharePoint list PROJDETAIL I want to trigger a power automate flow to update the contract total
In PROJTOTS to sum all the Role_Totals for that project in PROJDETAIL
MasterProjID field in PROJDETAIL is a lookup to the ID in PROJTOT –
I see lot of similar posts on this, and I've tried them but none working. thx in advance