International test matches are for five days and ranji test matches should also be played for five days. If after five days also its a draw, then similar to duckworth lewis a equation must be considered.
Team 1: 152 and 363/2 decl Team 2: 155 and 177/7 when play ends
Overall performance by Team 2 is perhaps below par but they still win. If a match ends in a draw then the overall points the teams bring in must used in some fashion. This method is also flawed as the team coming in with more points will eke out a draw than a win!!