def calculate_coffee_margins(
coffee_cost=25, # руб. за порцию
milk_cost=20, # руб. за порцию
cup_cost=10, # руб. за стакан
other_ingredients=5, # руб. за порцию (сиропы, топинги)
selling_price=200, # руб. за напиток
daily_sales=100, # чашек в день
rent=60000, # руб. в месяц
utilities=15000, # руб. в месяц
salary=120000, # руб. в месяц на всех сотрудников
marketing=20000, # руб. в месяц
days_per_month=30 # рабочих дней
):
# Расчет переменных затрат на одну чашку
variable_costs = coffee_cost + milk_cost + cup_cost + other_ingredients
# Расчет постоянных затрат на одну чашку
monthly_fixed_costs = rent + utilities + salary + marketing
daily_fixed_costs = monthly_fixed_costs / days_per_month
fixed_costs_per_cup = daily_fixed_costs / daily_sales
# Расчет общей себестоимости одной чашки
total_cost_per_cup = variable_costs + fixed_costs_per_cup
# Расчет прибыли
profit_per_cup = selling_price - total_cost_per_cup
daily_profit = profit_per_cup * daily_sales
monthly_profit = daily_profit * days_per_month
# Расчет маржинальности
margin_percent = (profit_per_cup / selling_price) * 100
markup_percent = ((selling_price - variable_costs) / variable_costs) * 100
return {
"Переменные затраты на чашку": round(variable_costs, 2),
"Постоянные затраты на чашку": round(fixed_costs_per_cup, 2),
"Полная себестоимость чашки": round(total_cost_per_cup, 2),
"Прибыль с одной чашки": round(profit_per_cup, 2),
"Маржинальность (%)": round(margin_percent, 2),
"Наценка (%)": round(markup_percent, 2),
"Прибыль в день": round(daily_profit, 2),
"Прибыль в месяц": round(monthly_profit, 2)
}
# Пример использования
results = calculate_coffee_margins()
# Анализ точки безубыточности
def break_even_analysis(fixed_costs, variable_costs, selling_price):
contribution_margin = selling_price - variable_costs
break_even_units = fixed_costs / contribution_margin
return round(break_even_units)