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.

Calculating Price based on cost

Featured Replies

I want to calculate price for an item based on cost. It works out as follows:

If Cost is > or = $100, add $100, then round up to next $9.95. If Cost is < $100, double Cost, then round up to next $9.95.

Does this make sense? Is there a way to do this using Price as a calculation?

Thanks, in advance, for any feedback.

Mike

FileMaker Version: 5

Platform: Mac OS X Panther

Case(

Cost >= 100, Round(Cost + 105, -1) - .05,

Round( (Cost*2) + 5, -1) - .05

)

I'm not 100% confident in this, but I'm sure the mathematicians will chime in.

  • Author

Fitch,

I think that is close. I guess I also need to include that

if cost is empty or zero, price needs to be blank.

Is that possible as well?

Thanks Again.

Case(

Cost = 0, "",

IsEmpty(Cost), "",

Cost >= 100, Round(Cost + 105, -1) - .05,

Round( (Cost*2) + 5, -1) - .05

)

Or

Case(Cost,

Case(Cost >= 100, Round(Cost + 105, -1) - .05,

Round( (Cost*2) + 5, -1) - .05)

)

If Cost is empty or zero, the second case will not return a value.

  • 2 weeks later...
  • Author

Thank you for your help guys.

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.