330 posts Keeping Things Simple
  • Has been part of the Envato Community for over 2 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+7 more

Hello everyone!

The other day I was wondering how much money I would earn if I ever reached the 70% cut, or, what would be my balance if I reached a sales volume of $75000. So I did this quick script to calculate the earnings depending on the sale volume and the growing payment rates: http://jsfiddle.net/cmoreira/Egcua/

It’s very simple, i didn’t spend any time on design :P

I searched the forums and I didn’t find anything similar, so I’m sharing it here.

And a small challenge to the other coders: how would you do it? :)

I am not sure the function I did is the best, so, how would you do it? How would you enhance this script? Share your solutions here!



Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes