def eval_median_spend(simulation):
    """median spend metric for current trial

    Returns:
        float: Median real spending for current trial
    """
    return simulation.latest_trial.trial_df['spend'].median()