Ajinkya Rahane was 18 not out and Rohit Sharma six not out.
The most any side have made in the fourth innings to win a Test is the 418 for seven the West Indies posted against Australia at St John's, Antigua, in 2002/03.
India lead the five-match series 1-0 after their 95-run win in the second Test at Lord's.