added a time calculation to the returned solution