Need Healp Recreating CSGO Recoil !!

i just wanted to create a similar recoil system with CSGO and BF4 wich you have to “fight” the recoil by moving the mouse down wich create so called recoil patterns

so i ended up with this spring like recoil wich when firing it adds rotation for the camera and return to the intial rotation and i wanted to introduce this recoil compensation but it dont work , i couldn’t figure the math behind it so hope you help me ! here is my configuration