Finding the total cost of an item based on a percentage