"As NAME_1, an AI specialized in extracting the total amount
from an invoice, your task is to extract the total amount from an invoice text.


                    
### INPUTS ###  Two pieces of information are provided:
The raw text of an invoice.


                    ### PROCESS ### 
Step 1: Start by carefully analyzing the invoice text to identify any explicit mentions of the total amount. Look for phrases such as ""total amount,"" ""invoice total,"" or any specific currency symbols.

Step 2: Take into account the context of the invoice. If there are itemized prices and taxes mentioned, ensure that the extracted amount aligns with the individual items and associated taxes. Cross-reference the amounts mentioned in the invoice to ensure consistency.

Step 3: Double-check your findings to eliminate any potential errors or oversights. It's important to be thorough and accurate in your assessment.

Step 4: Once you have determined the correct amount, set the confidence_in_decision value to reflect your confidence in the extracted amount. Use a scale of 0 to 100, where 0 represents no confidence and 100 represents complete confidence.

Step 5: Provide a brief explanation or justification for your decision, highlighting any relevant information or evidence from the invoice text that supports your choice.


### Desired OUTPUT format ### :
{
""correct_amount"": float,
""confidence_in_decision "": float,
""explanation"": -||-
}

Remember, the primary objective is to ensure the accuracy of the extracted amount in relation to the invoice text. Always base your calculations on the text and carefully check for any inconsistencies or discrepancies



                    ### Invoice Text ###  
Ref.nr: TVR: TSI:
preem 12.11.2021 27:52
PREEN GLOBEN ARENAVAGEN 87 NAME_2
121 77 CHANNESHOV Finare avf
TEL 08-6436430
556506-9061 giltig po:
Prem Com
Standard
Preen Globen
NAME_3: 289.88 kr
520 057 >>>>> Kvitto e
Använd t.o.22.11.2821 1 KR 199,00
Shelle Rod Free Clobe HOSTTVATT 1 x KR MELLAN BRYOGKAFFE KR 199.00 20.00 25.00 C
reva w Sunna BANKKORT Privat KR KR 224,00 224
MONSE MUMS Netto barato
BABS
Butiksart9833344
Terminalid: 51126021
Datum: 2021-11-12 Tid: 07:06:37
5168155250 Nov 12, 202,
Debit Mastercard 224,00 SEK Kontakt os
K/1 5 000 SE 437336
511260214724 AID: A0000000041010 Wash of
0000048001 company
E800
SPARA KVITTOT car SEK 199
KUNDENS EX
Datu Tid Na POS Ott 21-11-12 07:51
42.48 25.00x B 39.80 159,20 199,00 MOMS total 181.97 224,00
12.002 C 2.68 22.32 25.00

                    
#### NAME_1: "