Why a cricket over contains six valid balls
An over normally consists of six valid balls. Some deliveries add runs or events without counting towards those six.
Count valid balls
The MCC law on overs defines the valid-ball count. Wides and no-balls do not normally count among the six. As a result, an over can involve more than six actual deliveries before it is completed.

Read a simple sequence
Suppose five valid balls have been bowled and the next delivery is called wide. The over has not reached six valid balls yet. Another valid ball is needed to complete it. This is an illustrative sequence, not a live score.
Use the official scorecard
A score feed may show delivery events and over notation in separate places. Match the event labels to the valid-ball count instead of assuming every line advances it. For unusual situations, follow the competition's official scoring.
A useful next step
Read the over rule linked from the IPL page before converting overs into balls.
Explore IPL score and fixture reading