Is there a way to retrieve the last date of an event using the Solspace calendar plugin?
Do you mean this?

{% set eventOptions = {
    dateRangeStart: targetStartDate,
    dateRangeEnd: targetEndDate,
    limit: 15,
    search: "EndrepeatHandle:On date"
} %}
{% set events = craft.calendar.events(eventOptions) %}