# Issue: calculation not made when using default percentages

**URL:** <https://community.silverfin.com/t/issue-calculation-not-made-when-using-default-percentages/1475>\
**Category:** Templates\
**Created:** [May 9, 2019, 2:47pm UTC](https://community.silverfin.com/t/issue-calculation-not-made-when-using-default-percentages/1475 "2019-05-09T14:47:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)\
**Post date:** [May 9, 2019, 3:24pm UTC](https://community.silverfin.com/t/issue-calculation-not-made-when-using-default-percentages/1475/2 "2019-05-09T15:24:47Z")

</div>

Hi Sylvia,

Giving a default value to a variable does NOT mean the object will be filled with this default value. More information on defaults you can find here: [CASE: when to use placeholder, default and placeholder\_default tags?](https://community.silverfin.com/t/case-when-to-use-placeholder-default-and-placeholder-default-tags/467)

Your code needs to be changed in something like this:

```auto
{% newline %}
|Aankopen van grondstoffen en bouwmaterialen
|{{ #600 | currency }}
|{% input custom.grondstoffen.variabel as:percentage default:1 %}
|{% input custom.grondstoffen.vast as:percentage default:0 %}
{% if custom.grondstoffen.variabel == blank %}
|{{ #600*1 | currency }}
{% else %}
|{{ #600*custom.grondstoffen.variabel | currency }}
{% endif %}
{% if custom.grondstoffen.vast == blank %}
|{{ #600*0 | currency }}
{% else %}
|{{ #600*custom.grondstoffen.vast | currency }}
{% endif %}
```

---

_[View the full topic](https://community.silverfin.com/t/issue-calculation-not-made-when-using-default-percentages/1475)._
