Baroda were all out for 305 after resuming their first innings at 286 for nine.
In reply, Mumbai were 313 for eight stumps thanks to Herwadkar's 106 off 216 balls.
The other contributions came from Suryakumar Yadav (54) and Balwinder Sandhu, who remained unbeaten on 56.
Sagar Mangalorkar was the stand out bowler for Baroda, taking three wickets for 74 runs.
Captain Irfan Pathan, who made 19 with the bat yesterday, was economical in his 13 overs giving away only 21 runs and took the wicket of talented rookie Armaan Jaffer.
More From This Section
Herwadkar himself hit 14 fours in his 216 ball effort.
Yadav's run out resulted in loss of three quick wickets for Mumbai before Sandhu and Abhishek Nayar (38) came to their team's rescue.
Brief Scores: Baroda 305 all out in 86.1 overs (Pinal Shah 66, Deepak Hooda 46, Yusuf Pathan 41; Vijay Gohil 3/70, Shardul Thakur 2/82).
Mumbai 313/8 in 88 overs (Herwadkar 106, Yadav 54, Sandhu 56 batting; Mangalorkar 3/74).