Site icon BotFlo

Cursor App Template #50 — Cost Center Allocations

Cost Center Allocations

Allocate shared expenses across departments using rules, review summaries, and export allocation reports.

Overview

This app helps finance and FP&A teams distribute overhead and shared costs to cost centers. Enter expenses in an AG Grid with allocation percentages for Sales, Marketing, Engineering, Operations, and G&A. Apply allocation rules — equal split, headcount-based, or revenue-based — to one expense or all at once. KPI cards and a summary table show totals per cost center; doughnut and bar charts visualize the breakdown. Excel import and export support month-end reporting. Everything runs in a single self-contained HTML page with data saved locally in your browser.

Key features

Expense grid

Allocation rules

Summary by cost center

Charts & reporting

Data management

Data & persistence

Sample data includes eight expenses allocated across five departments using varied percentage splits. State saves to `localStorage` under `cost-center-allocations-data` and `cost-center-allocations-dark`.

Charts & reporting

The doughnut chart shows dollar allocation per cost center from valid (100%) rows. The bar chart aggregates expense amounts by category. Excel export includes full allocation detail and a per-department summary with share percentages.

Built with

Tailwind CSS (CDN), AG Grid Community, Alpine.js, Chart.js, and SheetJS — all loaded from CDN in a single HTML file.

Try the interactive walkthrough below. Click Walk through features and use Next / Back (or arrow keys) to explore every feature.

Dark mode and localStorage

Cost Center Allocations

Allocate shared expenses across departments using rules, review summaries, and export allocation reports.

Total expenses$106,000.00
Allocated$106,000.00
Valid rows8 / 8
Top cost centerOperations$28,420.00

Allocation rules

20% to each of 5 departments

Selected expense

Cloud hosting$12,000.00 · IT / InfrastructureAllocation total: 100.0%

Summary by cost center

CenterHCRev%AllocatedShare
Sales2540%$22,100.0020.8%
Engineering3510%$26,800.0025.3%
Operations2030%$28,420.0026.8%

Allocation by cost center

Expense by category

Expenses & allocation %8 expenses
ExpenseCategoryAmountSales%Eng%Total%
Cloud hostingIT$12,00015%45%100%
Office rentFacilities$24,00020%25%100%
Marketing campaignsMarketing$18,00025%5%100%
💾 Saved to localStorage
Exit mobile version