Salary calculation

Example new staff joined 21/3 , i try to process the salary in April, it count full salary, why not just few day salary?

Please search the forum for similar question, this has already been answered.