I have created simple code in asp.net core (calculate salary) through following math equation: get salary after retirement : [basic salary × months work count / 480].