# Expense application,how to start?

**URL:** <https://community.thunkable.com/t/expense-application-how-to-start/2510350>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, help\
**Created:** [July 18, 2023, 5:23am UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350 "2023-07-18T05:23:33Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![2021210088h3qh49](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@2021210088h3qh49](https://community.thunkable.com/u/2021210088h3qh49)\
**Post date:** [July 20, 2023, 4:49am UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/21 "2023-07-20T04:49:59Z")

</div>

it works!! thank you 😄

---

<div class="post-metadata">

**Author:** ![2021210088h3qh49](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@2021210088h3qh49](https://community.thunkable.com/u/2021210088h3qh49)\
**Post date:** [July 20, 2023, 9:45am UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/22 "2023-07-20T09:45:40Z")

</div>

Currently, I’m facing an issue where I want to remove an item also decreases the total. It seems a bit challenging to resolve.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/24779170da455f0cca003fdc3a3bc9ef52888928.png)

---

<div class="post-metadata">

**Author:** ![2021210088h3qh49](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@2021210088h3qh49](https://community.thunkable.com/u/2021210088h3qh49)\
**Post date:** [July 20, 2023, 12:20pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/23 "2023-07-20T12:20:32Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c381fbe4ff6af075c894b71cb3638af07af2bdfe.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb1bc9504b9dccf4d6e954ad5bca740d82b87836.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 20, 2023, 1:53pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/24 "2023-07-20T13:53:00Z")

</div>

The green “index” block just contains a number. For example, if you click the 3rd item in the Simple List, then that block contains the value 3.

Your code is removing the clicked item — in this example the third one — and then trying to subtract the clicked item from the total. But because you’ve already removed that item from the list, it doesn’t exist. In this example, you’re actually subtracting what was the 4th item (now the 3rd).

You need to do the subtraction (calculating the new total) **before** you remove the list item.

---

<div class="post-metadata">

**Author:** ![2021210088h3qh49](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@2021210088h3qh49](https://community.thunkable.com/u/2021210088h3qh49)\
**Post date:** [July 20, 2023, 2:08pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/25 "2023-07-20T14:08:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2cd2d81ba786a9586886a93fc4945315349c7e8a.png)  
I apologize, but I don’t think I understand that.Is it something like this?

---

<div class="post-metadata">

**Author:** ![2021210088h3qh49](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@2021210088h3qh49](https://community.thunkable.com/u/2021210088h3qh49)\
**Post date:** [July 20, 2023, 2:10pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/26 "2023-07-20T14:10:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/c/5c43f1fd33bd03df6c5b61cdffd72d68f8c22fa1.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/f/bfd927bbc19dbff821d762d6e42680c355814ad3.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 20, 2023, 2:38pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/27 "2023-07-20T14:38:22Z")

</div>

Sorry, I didn’t realize you were using a list _and_ a data source. The blocks you had were actually probably correct.

Now you’re running into a known issue with the Get Value block. Namely that… it doesn’t work. See this: [Google Sheets data source doesn't update every time - #6 by matt\_conroy](https://community.thunkable.com/t/google-sheets-data-source-doesnt-update-every-time/2504230/6)

I don’t have a good alternative for you but maybe Thunkable Staff can help with this.

---

<div class="post-metadata">

**Author:** ![2021210088h3qh49](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@2021210088h3qh49](https://community.thunkable.com/u/2021210088h3qh49)\
**Post date:** [July 20, 2023, 2:51pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/28 "2023-07-20T14:51:33Z")

</div>

No need to worry. Thank you so much for all the guidance you’ve provided! I truly appreciate your time and assistance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [October 18, 2023, 2:51pm UTC](https://community.thunkable.com/t/expense-application-how-to-start/2510350/29 "2023-10-18T14:51:34Z")

</div>

Closed on October 18, 2023, 2:51pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.thunkable.com/t/expense-application-how-to-start/2510350.md?page=1)
