I am new to Android development. I have developed an app in Play Store and then I got approached by a client in Facebook to build a translation of a religious word as an app. He said he will give me $50 for the app and gave me the website too from which I have to parse the content. I used the the content and gave him 5 prototypes at every 15 to 20% of progress. I had completed it in 3 weeks of full work and had sent him the work with 99% of it completed. Only the icon has to be provided for the app.
Then I sent it to my friends for testing the app and they said to me that $50 is too less for the work. They told me of the developer fees per hour. They asked me to calculate the rate as $5/hr and it will cost to a minimum of $100. So I just asked the client of the hourly developer rates and asked his opinion of giving me $100 and didn't demand him.
He said he can't and I said I can give him for $50. But he said it's too unethical to discuss the new rates once the rate is fixed and said he doesn't need my app at all. He asked me to delete my project files and he doesn't care about the work and broke off.
I have the app with 99% work completed and now its vain and 0% percent as the content of translation I used was a copyrighted one and I can't publish it. It's not about the money much but the client treated my work like trash and it worries me a lot.
But I used the app as a framework and made Bible and sold it for ($125). So as someone new to freelancing, how can I know if I am being underpaid?
If I had accepted the client for the work with less and if the app grows then how can I approach him?
Due to outsourcing how can I calculate the cost?