Math Formula ?

Hello,

I look for a formula to calculate the difference :

Column IG ==> taking in account the name and the date.

An idea ?

Thanks

Br