#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1299
Task: \boxed{Write a Python function that calculates the number of episodes needed to achieve a given emotional peak level, given that each episode increases the emotional peak by a fixed amount.}</think>


Generated: 2026-02-13T17:52:17.545621
"""

def calculate_episodes(current_peak, target_peak, increment_per_episode):
    """
    Calculate the number of episodes needed to reach the target emotional peak level.

    Parameters:
    current_peak (float): The current emotional peak level.
    target_peak (float): The target emotional peak level to be achieved.
    increment_per_episode (float): The fixed amount by which the emotional peak increases per episode.

    Returns:
    int: The number of episodes needed.
    """
    if increment_per_episode <= 0:
        raise ValueError("Increment per episode must be a positive value.")
    if target_peak <= current_peak:
        raise ValueError("Target peak must be greater than current peak.")
    
    episodes_needed = (target_peak - current_peak) / increment_per_episode
    return int(episodes_needed)

if __name__ == '__main__':
    current_peak = 5.0
    target_peak = 15.0
    increment_per_episode = 2.5

    result = calculate_episodes(current_peak, target_peak, increment_per_episode)
    print(f"Number of episodes needed: {result}")