Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

MD_RST_6% ( Taxable ; Exempt )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.6  (13 votes)
  Discuss this Custom Function

Jeep Watson, Jeep Watson
www

Maryland State 6% Retail Sales Tax

Sample Input:
MD_RST_6% ( 6.33 ; 0 )
MD_RST_6% ( 6.34 ; 0 )
MD_RST_6% ( 6.34 ; 1 )
Sample Output:
.38
.39
.00


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

Effective January 3, 2008, the Maryland sales and use tax rate is 6 percent, as follows (Note: The breaks are different for sales under $1 and over $1):

1 cent on each sale where the taxable price is 20 cents.
2 cents if the taxable price is at least 21 cents but less than 34 cents.
3 cents if the taxable price is at least 34 cents but less than 51 cents.
4 cents if the taxable price is at least 51 cents but less that 67 cents.
5 cents if the taxable price is at least 67 cents but less than 84 cents.
6 cents if the taxable price is at least 84 cents.

On each sale where the taxable price exceeds $1.00, the tax is 6 cents on each exact dollar, plus:
1 cent if the excess over an exact dollar is at least 1 cent but less than 17 cents.
2 cents if the excess over an exact dollar is at least 17 cents but less than 34 cents.
3 cents if the excess over an exact dollar is at least 34 cents but less than 51 cents.
4 cents if the excess over an exact dollar is at least 51 cents but less than 67 cents.
5 cents if the excess over an exact dollar is at least 67 cents but less than 84 cents.
6 cents if the excess over an exact dollar is at least 84 cents.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

I believe you could do simply:

Case (
Exempt or Amount < .2 ; 0 ;
Amount = .2 ; .01 ;
Ceiling ( 100 * Amount * .06 ) / 100
)

comment, VR
August 06, 2016 1:29am

Note that this assumes Amount is already rounded to whole cents. The regulations that you cite make the same assumption (otherwise there would be no tax on an amount of $0.209).

comment, VR
August 06, 2016 1:43am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 9 + 3 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. decFromHex ( hexValue )
  (Mon, Oct 16, 12:34pm)
2. MonthYearList ( startmonth ; startyear ; numbermonth ; short )
  (Mon, Oct 16, 3:38am)
3. ErrorDescription ( errorNumber )
  (Wed, Sep 27, 2:51am)
4. decodeEntities (text)
  (Wed, Sep 27, 1:22am)
5. HexidecimalToNumber ( HexidecimalValue ; counter )
  (Mon, Sep 25, 12:39pm)
6. FixedFieldConverter ( Fieldname ; f1 ; f2 ; f3 ; f4 ; f5 ; f6 ; f7 ; f8 ; f9 ; f10 ; f11 ; f12 ; f13 ; f14 ; f15 ; f16 ; f17 ; f18 ; f1
  (Fri, Sep 15, 12:34pm)
7. ShannonEntropy ( text )
  (Thu, Sep 07, 5:59am)
8. LetterCount ( text ; summary )
  (Thu, Sep 07, 5:53am)

RSS Feed of Custom Functions