Hello Mehdi!
I’ve tried to reproduce the steps of your post, but Looker did not permit to set the calculated fields according to your descriptions. Do you have any idea where’s the problem?