{% extends 'base.html.twig' %} {% block title %}Profitability Analysis - Admin{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %}
← Back to Dashboard

Profitability Analysis

{% set total_cost = 0 %} {% set total_requests = 0 %} {% set total_users = 0 %} {% for month in monthly_data %} {% set total_cost = total_cost + month.azure_cost %} {% set total_requests = total_requests + month.requests %} {% set total_users = total_users + month.active_users %} {% endfor %}
${{ total_cost|number_format(2) }}
Total Azure Cost (6 months)
{{ total_requests|number_format }}
Total Requests
${{ total_requests > 0 ? (total_cost / total_requests * 1000)|number_format(4) : 0 }}
Cost per 1K Requests
${{ total_users > 0 ? (total_cost / total_users)|number_format(4) : 0 }}
Avg Cost per User

Monthly Cost Analysis

{% for month in monthly_data %} {% else %} {% endfor %}
Month Requests Tokens Azure Cost Active Users Avg Cost/User
{{ month.month }} {{ month.requests|number_format }} {{ month.tokens|number_format }} ${{ month.azure_cost|number_format(2) }} {{ month.active_users }} ${{ month.avg_cost_per_user|number_format(4) }}
No usage data available yet

Cost Trend

Subscription Tiers

{% for tier in tier_configs %}
{{ tier.display_name }}
${{ tier.price_monthly_usd|number_format(0) }} /month
✓ {{ tier.credits_monthly|number_format }} credits/month
✓ {{ tier.max_requests_daily }} requests/day
{% else %}
Starter
$9 /month
✓ 500 credits/month
✓ 50 requests/day
Professional
$39 /month
✓ 4,000 credits/month
✓ 500 requests/day
Institution
$99 /month
✓ 15,000 credits/month
✓ 2,000 requests/day
{% endfor %}

Azure OpenAI Pricing Reference

{% for model, prices in pricing.models %} {% endfor %}
Model Input (per 1K tokens) Output (per 1K tokens) Use Case
{{ model }} ${{ prices.input|number_format(5) }} ${{ prices.output|number_format(5) }} {% if model == 'gpt-4o-mini' %} Light operations (keywords, citations) {% elseif model == 'gpt-4o' %} Standard operations (chat, generate) {% elseif model == 'gpt-4.5-preview' %} Complex operations (research, analysis) {% else %} General purpose {% endif %}

Profitability Calculator

Based on current data, here's the estimated profitability per tier:

{% set avg_cost = total_users > 0 ? (total_cost / total_users) : 2.5 %}
Tier Price Est. Avg Cost/User Est. Profit/User Margin
Starter $9.00 ${{ (avg_cost * 0.5)|number_format(2) }} ${{ (9 - avg_cost * 0.5)|number_format(2) }} {{ ((9 - avg_cost * 0.5) / 9 * 100)|number_format(1) }}%
Researcher $19.00 ${{ (avg_cost * 1.5)|number_format(2) }} ${{ (19 - avg_cost * 1.5)|number_format(2) }} {{ ((19 - avg_cost * 1.5) / 19 * 100)|number_format(1) }}%
Professional $39.00 ${{ (avg_cost * 4)|number_format(2) }} ${{ (39 - avg_cost * 4)|number_format(2) }} {{ ((39 - avg_cost * 4) / 39 * 100)|number_format(1) }}%
Institution $99.00 ${{ (avg_cost * 10)|number_format(2) }} ${{ (99 - avg_cost * 10)|number_format(2) }} {{ ((99 - avg_cost * 10) / 99 * 100)|number_format(1) }}%
{% endblock %}