# Time-of-Use Bill Calculator AI Agent Connect

> Time-of-Use Bill Calculator MCP handles the math for complex energy billing. It maps interval-based consumption against specific Time-of-Use (ToU) tariff periods. Your AI client can calculate energy charges, demand charges, and export credits while factoring in fixed fees and taxes to produce a complete financial breakdown.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_OKybSZ8Q5xjfRkyUAPU52ajhrHxuNRksY5BnHjGk/ai-agent-connect
- **Tags:** electricity, billing, tariff, consumption, utility

## Description

You can stop manually mapping consumption intervals to tariff windows. This MCP acts as a specialized calculation engine that processes your electricity usage data against any defined Time-of-Use schedule. Instead of guessing how peak periods affect your bottom line, you give your agent the raw consumption intervals and the tariff rules, and it handles the rest. It calculates energy charges, demand charges, and even accounts for export credits. It also manages fixed fees and tax applications to ensure the final number is accurate. Whether you are auditing a utility bill or modeling future energy costs, this tool provides the mathematical heavy lifting required to turn raw telemetry into a clear financial summary.

## Tools

### analyze_demand_profile
This tool identifies exactly when and how often peak demand occurs in your data.

### get_consumption_statistics
This tool provides high-level usage metrics for any set of consumption data you provide.

### calculate_billing_summary
This tool generates a complete financial breakdown of an electricity bill.

### validate_tariff_coverage
This tool checks if your tariff definitions cover every time period within a specific billing cycle.

## Prompt Examples

**Prompt:** 
```
Calculate the bill for these intervals: [{'timestamp': '2023-01-01T00:00:00Z', 'volume': 5}, {'timestamp': '2023-01-01T01:00:00Z', 'volume': 10}] with a fixed charge of 10 and a tax rate of 0.05.
```

**Response:** 
```
The total bill is 15.75, including energy charges and taxes.
```

**Prompt:** 
```
What was the peak usage in my consumption data?
```

**Response:** 
```
The peak usage was 15.5 kWh recorded at 2023-05-12T14:00:00Z.
```

**Prompt:** 
```
Check if my tariff periods cover the period from 2023-01-01 to 2023-01-02.
```

**Response:** 
```
The tariff periods are fully covered for the requested billing cycle.
```

## Capabilities

### Financial Breakdowns
Your agent uses this to generate full summaries of energy, demand, and tax costs.

### Demand Analysis
Your agent identifies peak usage patterns to find where costs are highest.

### Tariff Validation
Your agent checks that your pricing rules don't leave any time gaps in a billing cycle.

### Usage Statistics
The tool pulls high-level metrics from raw consumption datasets.

## Use Cases

### Utility Bill Auditing
Compare raw meter data against a utility's tariff to find billing errors.

### Demand Management
Analyze demand profiles to see how often a facility hits peak pricing thresholds.

### Solar Export Modeling
Calculate credits earned from exporting energy back to the grid based on specific time windows.

### Cost Forecasting
Run different tariff scenarios against historical usage to predict future energy spend.

## Benefits

- Automates the mapping of consumption intervals to specific tariff windows.
- Calculates demand charges and export credits without manual formulas.
- Ensures billing accuracy by validating that all time periods are covered by tariffs.
- Provides instant financial summaries from raw telemetry data.

## How It Works

Connect your client to Vinkius to start running energy calculations immediately.

1. Connect your MCP-compatible client to the Vinkius hosted environment.
2. Provide your consumption intervals and tariff definitions to your AI client.
3. Ask your agent to run specific tools like billing summaries or demand analysis.
4. Receive the calculated financial data or usage statistics directly in your chat interface.

## Frequently Asked Questions

**What kind of data does this MCP need?**
It requires interval-based consumption data, such as timestamps and volume, along with your specific Time-of-Use tariff rules.

**Can it handle taxes and fixed fees?**
Yes, the calculation engine accounts for fixed fees and tax rates when generating a billing summary.

**How do I know if my tariff rules are complete?**
You can use the validate_tariff_coverage tool to ensure your defined periods cover the entire billing cycle.

**Does it support export credits?**
Yes, the tool is designed to compute energy charges, demand charges, and export credits.

**Which AI clients can I use with this?**
You can use this MCP with any compatible client like Claude, Cursor, or Windsurf.

**How do I calculate my total bill?**
You can use the `calculate_billing_summary` tool by providing your consumption intervals, tariff periods, and other billing parameters.

**Can I check if my tariff periods cover the whole billing cycle?**
Yes, the `validate_tariff_coverage` tool checks if your defined periods account for every moment within the specified billing cycle.

**How are demand charges handled?**
Demand charges are calculated based on the highest single consumption volume recorded in an interval, multiplied by your specified demand rate.
