The Finance Algorithm