Skip to content

Instantly share code, notes, and snippets.

@samlehman
Created August 25, 2017 19:15
Show Gist options
  • Save samlehman/1dbf7dbcef83e2d259f0def4a3689086 to your computer and use it in GitHub Desktop.
Save samlehman/1dbf7dbcef83e2d259f0def4a3689086 to your computer and use it in GitHub Desktop.
eTrade
def etrade(num_of_shares,purchase_price)
(2*6.95 + (num_of_shares * purchase_price))/num_of_shares
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment