class TripDatesPresenter extends BasePresenter<TripDateView> {

    @Override
    public void subscribe() {
        if (editableTrip == null) {
            compositeDisposable.add(view.getStartDateChanges()
                    .map(date -> new Date(date.getTime() + TimeUnit.DAYS.toMillis(userPreferenceManager.get(UserPreference.General.DefaultReportDuration))))
                    .subscribe(view.displayEndDate()));
        }
    }

    public  TripDatesPresenter(@NonNull TripDateView view, @NonNull UserPreferenceManager userPreferenceManager, @Nullable Trip editableTrip);

}