Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

I am retired and I thought that this would make my mind work so I took up Filemaker. I want to calculate taxes, for example gross of 6500.00 first 29000.00 at x% the next 29000.00 to 45000.00 at y% and so on.

Can you expand a little bit on what this is about? The calculation itself should not be too difficult, I think . The more important question, IMHO,  is where should the rates be stored. Since rates tend to change over time, you must decide whether you need to keep the rates as they were at the time of each calculation, or is it sufficient to keep only the result.

 

  • Author
  • Newbies

I am trying to build a payroll app for my daughter and what to do the income tax section

  • Author
  • Newbies

I should explain this a little better, I am working on an app for my daughter that will do payroll for her. I don't know how to work out the tax deduction (gross amount 6000) and there will be tax of a % on the first 2000 and then a %on 2000 to 5000 and so on. I have no idea how to do this. if you could even point me in the right direction would be great.

7 hours ago, George52 said:

I should explain this a little better

Indeed you should. I don't think you've answered my concerns at all.

I could easily answer your question as asked: given a gross amount amt and a tax bracket of 7% from 2000 to 5000, the tax in the given bracket can be calculated as =

Max ( Min ( amt ; 5000 ) - 2000 ; 0 ) * .07

However, this requires hard-coding the tax bracket's limits and rate into the calculation - which, as I explained, is not a good idea.

My tendency would be to create a record  in a related table for each tax bracket applicable to the given gross amount. Naturally, this would have to be scripted - and the same script could also loop over the tax brackets and pass the remaining amount to the next iteration. The next best alternative, IMHO, would be to use repeating fields to calculate and store the amount and the tax in each bracket. The third option is to store only the calculated tax amount, without leaving any trail of how it was computed.

In any case, the process needs to start by retrieving the current tax brackets from another table. This is the only arrangement that will allow you to change them without affecting previously calculated taxes.

 

Edited by comment

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.