import math


def get_needed_daily_rate(
    cycle_minutes, target_count, current_daily_rate=0, needed_daily_rate=1000
):
    """
    Get needed hourly rate for cycles.

    needed_daily_rate - current_daily_rate = needed_daily_rate

    target_count / cycle_days = daily_rate
    needed_daily_rate * cycle_days = needed_target_count
    target_count / needed_daily_rate = needed_cycle_days
    """
    needed_daily_rate = needed_daily_rate - current_daily_rate
    cycle_days = cycle_minutes / (60 * 24)

    needed_target_count = needed_daily_rate * cycle_days

    needed_cycle_days = target_count / needed_daily_rate
    needed_cycle_minutes = needed_cycle_days * 60 * 24

    return math.floor(needed_target_count), math.ceil(needed_cycle_minutes)