tax rounding

Just a quick … issue with tax rounding. I’ve put together a ‘bespoke’ commerce system, and have integrated taxjar with it. However… i’ve also had to import orders from bigcommerce, and the bigcommerce store is using avalara.

A charge of 13.28, with 7.25% tax rate, gives .9628, which, going through rounding, gives 96 cents. The info coming from the bigcommerce/avalara shows 97 cents, causing no end of stupid frustration.

Similar example at this link shows an example in Maryland, and avalara’s answer is something to do with Maryland “brackets”, but there’s not a good way to tell which states (or perhaps even which counties in various states do this. Using a ‘per line item’ call to any tax service will get expensive, and the rounding (round half up on a 5) has worked decently with taxjar over the past several months (the numbers we calculate match what they calculate). I’m reluctant to change much of anything, but for parity with the bc/avalara duo, I might have to. Changing round() calls to ceil() calls is probably enough (or… something like ceil(x*100)/100 perhaps) but… argh…. not really a problem I want to be dealing with.

Just felt like sharing…

Sunshine PHP 2019

I just got back from the conference in Miami. This was my second time (went back in 2015) and … it was as good as the last time (better for me in some ways, which I’ll go in to here).

The hotel itself has undergone a pretty big internal change. The hotel is much more modern now – the atrium at least – the rooms seemed like they did before; nice suites, but they didn’t seem like they’d had a radicalized overhaul like the atrium.

Conferences are different experiences for different folks. Years ago, conferences were more about learning tech at sessions. Being able to soak up so much info from experts was valuable. As time goes on, for me, the conferences are more about people and connections, not so much raw tech.

One of my goals was to connect with more people I didn’t know. I’ve got a list – some of you will be getting emails from me to followup. If you didn’t get one from me, and would like to connect, email 🙂

Some great vendors/sponsors as usual. JetBrains, Twilio, RingCentral, RIPSTech and more. I got some great hands-on demos and assistance from Manik with Nexmo on the TokBox platform (thanks again!) Caught up with David Stokes from MySQL. We first met in Nashville’s SEPHP conference, and he was generous enough to give me a small autographed book 🙂

Great to catch up with friends like Cal Evans and Josh Holmes (both of whom I first met in … 2008 at CodeMash all those years ago!) and hopefully have made a few new friends to see again at tech events in the coming years.

If I have time, I may update this post with a few more thoughts and pictures, but wanted to get a little something up now so I don’t forget. If we connected there, feel free to leave a comment here or reach out by email!

Oh… and thanks to Adam Culp for all the organizational effort he puts in to this event. Seems to be a labor of love, and it sounded like he’s got some more ideas for next year already!