Indy cars have a higher top speed then a Formula 1 car. However over a lap a Formulla 1 car is qucker. The main reason fr this is that an Indy car is so much heavier than a Formula 1 car. Therefore an F1 car can brake, accelerate and corner quicker than an Indy car and therefore a quicker llap time.
A Formula One race car has more horse power, torque, and weighs about 300lbs less than an Indycar (which is build more to stand huge impacts rather than raw speed). A Formula One car costs millions of dollars where as an Indycar cost less than half million. so its a safe bet a Formula One car would be faster at acceleration.
Opportunity cost is defined as the cost of using a resource in the best alternative. For example: Lets take for instance you have a car, which can either be used for taking your family for shopping or for business purposes (e.g as a cab) from which you can make US$500 a month. Therefore, the opportunity cost of using your car for personal purposes (e.g. taking your family for shopping) is US$500. Hope this helps!