Toilet tank takes 15 minutes to fill in
If it's a decent toilet then just repair the defective part. A new fill valve costs anywhere between 20 for a cheapy and 75 for a commercial grade. If the problem is anywhere else a new toilet will not fix the problem. Sometimes the float rubs on the inside of the tank or on the overflow. In that case it's a zero cost repair, just adjust it to have free movement.