For associations with very complex dues rules, we have seen a handful of our Novi customers provide calculator tools on the membership signup page.
In the past, those tools have been custom-built by outside engineers. In a recent post with ASAE Collaborate (the online community for the association for associations), someone recommended Ucalc as an inexpensive, lightweight option.
Here's a link if you'd like to investigate it further: