Generate salary from mid of one month to mid of next month

Is it possible to generate salary from 10th of previous month to 9th of current month based on Leave.