Write an algorithm (flowchart or pseudocode) which accepts the amount of water (in gallon) used by a household and calculates the water bill for the month. The first 10 gallon of water is free of charge, while the subsequent gallons are priced at 10 rupees per gallon. An additional charge of RS 500 will be added to the bill for water usage of more than 100 gallons.