Sorry I thought this was solved, but no matter what i try i still cant get the formula in the yellow boxes to work.

I have uploaded a new sample.

Thank you