With 18 earned leaves a year, the monthly credit is 18 ÷ 12 = 1.5 days. If credit is given after each completed month, on 15 June an employee in a January–December leave year has 5 completed months, so 7.5 days. If credit is given on the 1st of each month, the same employee has 6 credits, so 9 days.
Joining mid-month: many policies count the joining month only if the employee joins on or before the 15th. Someone who joins on 20 March starts earning from April. The calculator lets you change this cut-off day.
Rounding: companies often round credits down to the nearest half day (8.75 becomes 8.5). Choose the rounding your HR system uses so the result matches your leave portal.