Selling scenario

Hello community I have this rule while selling :
I have 2 items A and B . with this selling rule
If I sell 3 A , 1 B is added (not free)
4A → 1B
5A → 1B
6A → 3B
7A → 3B

so every 3 items of A it adds 1 item of B .
couldn’t do it with pricing rules . It almost works there but when I select 4 of A it add 1.33 of B which is not the case

@bahaou can you share your pricing rule screenshot here ? it should not be the case.

also mention version you are using