> For the complete documentation index, see [llms.txt](https://docs.stylemixthemes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stylemixthemes.com/motors-theme-documentation/theme-options/single-listing/calculator.md).

# Calculator

In the theme, you can also sell the listings by loan. Display the auto loan calculator on the single listing page to allow users to estimate monthly payments, and see how much total interest should be paid and the loan amortization schedule.

{% hint style="info" %}
The **Loan Calculator** option **is not available** in all **Classified Layouts**, **Rental**, and **Service** layouts.
{% endhint %}

![](https://2954064479-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDP3ivYPbpYO9Rs_wuB%2F-MXpot4_ek8-G79PA2YL%2F-MXpqrvKbpzvgItt-k-j%2Fimage.png?alt=media\&token=c8fe8eac-b397-4d00-bde6-aa9e36657403)

In the **Calculator section**, you can set the loan calculator default values.

Enter the **interest rate** and **month period** on the **Default Interest Rate** and **Month Period fields** respectively. Then indicate the **Down payment** settings on the appropriate fields.&#x20;

**The loan amount is calculated via the following formula:**&#x20;

$$
EMI = ( P × r × (1+r)^n ) / ((1+r)^n − 1)
$$

&#x20;Where: &#x20;

* EMI = Equated Monthly Installment
* P =  Down payment amount
* r = Default Interest Rate
* n = Default Month Period

## STM Single Car Calculator

To display the calculator on the **Dealer One/Two and Aircraft's** layouts first enable the **Show Calculator** option on the **Single Listing > Main** section. Then add the **STM Single Car Calculator** element to the page template.

![](https://2954064479-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDP3ivYPbpYO9Rs_wuB%2F-MYORrVdofRLykZ6pDjF%2F-MYOTr_SxjOtFjDYx2Eo%2Fimage.png?alt=media\&token=a28622b9-d9ea-4b6c-a8c7-fb87ed90a783)

On the **Classified One/Two/Three/Four, Boats and Magazine** layouts there **is no** **Show Calculator** option. Just include the **STM Single Car Calculator** element o the page template as above or include the **STM Single Car Calculator widget** to the single listing sidebar under the **Appearance > Widgets** section to display the loan calculator.

![](https://2954064479-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDP3ivYPbpYO9Rs_wuB%2F-MYORrVdofRLykZ6pDjF%2F-MYOStV7qqbqKFW1oPR9%2Fimage.png?alt=media\&token=195e99bd-c696-423a-82a6-bb131e815a2d)

On the **Motorcycles** and **Equipment** layouts, it is enough to enable the **Show Calculator** option on the **Single Listing > Main** section. The loan calculator button will be added automatically and **displayed as a pop-up modal**, there is no need to add any widget to display it.&#x20;

{% hint style="info" %}
The STM Single Car Calculator automatically takes the listing price, counts all the loan payments, and displays them in the calculator area.
{% endhint %}

{% tabs %}
{% tab title="STM Single Car Calculator View" %}
![](https://2954064479-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDP3ivYPbpYO9Rs_wuB%2F-MXpot4_ek8-G79PA2YL%2F-MXqFVt8LIQFj_xF9-7i%2Fimage.png?alt=media\&token=65301124-6dec-49f6-8146-a37cab380190)
{% endtab %}

{% tab title="Loan Calculator on Motorcycles/Equipment" %}
![](https://2954064479-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDP3ivYPbpYO9Rs_wuB%2F-MXqJCDQzgWm5GVs4mBW%2F-MXqR99zXKfs0eHZvAZM%2Fchrome-capture%20\(8\).gif?alt=media\&token=f7d91f2b-36cc-45ee-ac7f-73cdc1bb17a9)
{% endtab %}
{% endtabs %}

## STM Auto Loan Calculator

Also, there is an **STM Auto Loan Calculator element. This is a simple** calculator that calculates auto loans. You can write the required price of the product and calculate the loan conditions.

![](https://2954064479-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDP3ivYPbpYO9Rs_wuB%2F-MYOXYBzSb27b5gCOE-N%2F-MYOZ9juiOgXLVHNEvJZ%2Fimage.png?alt=media\&token=a3bb8932-c6c9-4732-bf62-a947ccaadb3d)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stylemixthemes.com/motors-theme-documentation/theme-options/single-listing/calculator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
