> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.custompricecalculator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Quantity Discount with Number Input

***You can use the actual number entered by the user enters and the range-based value set by you in your calculations through a single number input element.***

***Use the element name directly in the formula for retrieving the range-based value, and type the element name[actualvalue] in the formula to get the actual value entered by the user.***

**Example:**

The most common use case of the above feature is Quantity Discounts. You can let the user enter the desired quantity and calculate the price based on the quantity-range value set by you in the element properties.  
​  
As shown in the image below, you can set different prices for different quantity ranges, $5 for range 1 to 49, $4 for range 50 - 99, and so on.  
​

![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/3/d/673d74301cfde400/1_1pgqjs2.png)


Then, in the formula, you can retrieve the quantity-based price through the label name, i.e. "**Quantity**", and the actual value entered by the user in the number input through "**Quantity[actualvalue]**". So, the final price can be calculated by the formula - **Quantity*Quantity[actualvalue]  
​  

![](https://storage.crisp.chat/users/helpdesk/website/-/6/7/3/d/673d74301cfde400/2_2edkfk.png)
