finished rmi calculator