Davide Formolo won the seventh and final stage on Sunday as Miguel Angel Lopez dug deep to secure overall victory in the Volta a Catalunya.