All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.deepdreams.worker.services.deduction.CFCServicev1977Impl Maven / Gradle / Ivy

There is a newer version: 0.1.2-RELEASE
Show newest version
package tech.deepdreams.worker.services.deduction;
import java.util.Map;
import tech.deepdreams.worker.api.services.DeductionService;
import tech.deepdreams.worker.api.enums.CountryCode;
import tech.deepdreams.worker.constants.ElementCode;
import tech.deepdreams.worker.constants.LocalConstantCode;

public class CFCServicev1977Impl implements DeductionService{
	
	@Override
	public Double calculateEmployee(Map params) {
		Double value = (Double) params.get(LocalConstantCode.CODE_GROSS_TAXABLE_SALARY) ;
		return (value - value%1000) * 0.01 ;
	}

	@Override
	public Double calculateEmployer(Map params) {
		Double value = (Double) params.get(LocalConstantCode.CODE_GROSS_TAXABLE_SALARY) ;
		return value * 0.015 ;
	}
	
	
	public CountryCode country() {
		return CountryCode.CMR ;
	}
	
	public String code() {
		return ElementCode.CODE_CFC ;
	}
	
	public int version() {
		return 1977 ;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy