How to give free replacement ?

Suggestion :-

to give free replacement you need to define Scheme by using option called scheme balance

you can find this menu in System in following path
SCM > SCM Setting > Promotions > Scheme balance

value based or item based scheme and applied it while doing the order by changing the nature of product respectively