fixed percentage_raised function