prepare return matrix with given start date and end date