I call this function on the button. How to calculate salary with one click. from this way it's need to click two times to calc salary with epf.
function addThem(cb){
setEpf(0.08*salary);
setTotal(salary+bonus+ot+mah-loan-advance-epf);
cb();
}