# Cost Configuration Test

## Purpose of This Page <a href="#purpose-of-this-page" id="purpose-of-this-page"></a>

The Cost Configuration Test page acts as a **controlled simulation environment** for your active Cost Configuration settings.

Instead of testing calculations through the live Lead Generator, this page allows you to:

* Validate pricing logic safely
* Check how item quantities are calculated
* Confirm profit margin
* Ensure total system cost accuracy
* Detect configuration errors before publishing

This prevents incorrect pricing, margin loss, or unrealistic pre-feasibility results from appearing in the customer-facing module.

## What You Can Do Here <a href="#what-you-can-do-here" id="what-you-can-do-here"></a>

The steps below can be performed on this page:

* Enter a **test DC system size (kWp)**
* Adjust the **DC/AC ratio** to test the inverter sizing logic

{% hint style="info" %}
In the project, the DC/AC ratio is calculated automatically by dividing the total panel power (DC) by the total inverter power (AC).
{% endhint %}

* Enable or disable **battery** and define **battery capacity (kWh)**
* Click **Apply** to calculate the total cost of the project.
* Review **profit margin, VAT**
* Confirm **total project cost**

This allows you to fully stress-test your pricing structure under different system scenarios.

## How It Works <a href="#how-it-works" id="how-it-works"></a>

The test engine applies the **currently active Cost Configuration settings** to the technical inputs defined at the top of the page.

### DC Power (kWp) <a href="#dc-power-kwp" id="dc-power-kwp"></a>

The entered DC power determines:

* Total installed panel capacity

{% hint style="info" %}
Panel quantity is calculated automatically according to:

> DC System Size ÷ Selected Panel Power

The result is rounded to the nearest whole number
{% endhint %}

### DC/AC Ratio <a href="#dc-ac-ratio" id="dc-ac-ratio"></a>

The DC/AC ratio determines inverter sizing.

{% hint style="info" %}
DC/AC Ratio is calculated by dividing total installed panel power (DC power) by total inverter power (AC power).
{% endhint %}

Based on this result, the system selects or calculates:

* Required inverter size

This allows you to verify whether your inverter logic produces correct and cost-effective sizing.

### Battery Simulation (Optional) <a href="#battery-simulation-optional" id="battery-simulation-optional"></a>

When battery simulation is enabled:

* You enter the desired **battery capacity (kWh)**
* The system calculates the required battery unit quantity
* Battery cost is added to the total system price

### Cost Application Logic <a href="#cost-application-logic" id="cost-application-logic"></a>

After clicking **Apply**, the system:

* Calculates panel quantity and sizes the inverter according to the DC/AC ratio
* Adds battery units (if enabled)
* Applies all defined cost rules:
  * Per-watt costs (e.g., mounting, custom cost, etc.)
  * Fixed component prices
  * Shipping cost
  * Additional predefined cost items
* Applies the defined **profit margin** and **VAT**
* Calculates the **final total price**

All values are calculated instantly and displayed in the **Items Table** and **Financial Summary** section.

## Simulation Results <a href="#simulation-results" id="simulation-results"></a>

Displays the calculated system analysis and total project cost based on the applied configuration parameters.

### Items Table <a href="#items-table" id="items-table"></a>

The Items Table provides a detailed analysis of all calculated cost components.

For each item, the table displays:

* Category
* Selected item
* Unit type (per unit / per watt / fixed)
* Unit price
* Calculated quantity
* Total price (excl. VAT)

This allows you to identify misconfigured unit prices, incorrect quantities, or unexpected totals.

### Financial Summary <a href="#financial-summary" id="financial-summary"></a>

At the bottom of the page, the Financial Summary provides a complete project overview:

* Total Project Cost (incl. VAT and Profit Margin)
* Project Cost per kWp (excl. VAT)

{% hint style="info" %}
The items in the table and financial summary cannot be modified, as this is a simulation. You should update the **Cost Configuration** settings.
{% endhint %}

## Why This Page Is Important <a href="#why-this-page-is-important" id="why-this-page-is-important"></a>

The Cost Configuration Test page helps you:

* Prevent underpricing or overpricing
* Detect configuration mistakes early
* Maintain consistency in the live version

By testing multiple scenarios (small systems, large systems, high DC/AC ratios, battery-enabled projects), you can confidently publish your Cost Configuration knowing that all calculations behave as expected.

***

## Related Pages <a href="#related-pages" id="related-pages"></a>

* [Cost Configuration](/solarvis-modules/solarvis-lead-generator/cost-configuration.md)

[Feel free to contact us](https://www.solarvis.co/en/company/contact) if you need further assistance.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.solarvis.co/solarvis-modules/solarvis-lead-generator/cost-configuration-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
