can someone please help a new person to arduino

i am trying to make a code for a coin acceptor that will light an led when €2 has been put in and stay on for 5 min but i have an error with the code here is error and the code

coin3:54:7: error: 'time_past' was not declared in this scope
time_past = millis();
^~~~~~~~~
coin3:56:18: error: 'time_pasrt' was not declared in this scope
if (millis() - time_pasrt > 300000) {
^~~~~~~~~~
exit status 1
'time_past' was not declared in this scope

//Mario's Ideas
//Controlling coin acceptor with Arduino

#include <Arduino.h>
#include <TM1637Display.h>
#include <EEPROM.h>

// Module connection pins (Digital Pins)
#define CLK 3
#define DIO 4
#define LED 6
long Timestamp_2EUR = 0;
TM1637Display display(CLK, DIO);

// variable use to measuer the intervals inbetween impulses
int i = 0;
// Number of impulses detected
int impulsCount = 0;
// Sum of all the coins inseted
float total_amount = 0;

void setup() {
  // pinMode(2, INPUT_PULLUP);
  Serial.begin(9600);
  display.setBrightness(0x0f);
  // Interrupt connected to PIN D2 executing IncomingImpuls function when signal goes from HIGH to LOW
  attachInterrupt(0, incomingImpuls, FALLING);
  EEPROM.get(0, total_amount);
  display.clear();
  pinMode(LED, OUTPUT);
  digitalWrite(LED, LOW);

}

void incomingImpuls()
{
  impulsCount = impulsCount + 1;
  i = 0;
}

void loop() {
  i = i + 1;

  Serial.print("i=");
  Serial.print(i);
  Serial.print(" Impulses:");
  Serial.print(impulsCount);
  Serial.print(" Total:");
  Serial.println(total_amount);

  if (total_amount == 2) {
    digitalWrite(LED, HIGH);
    if (Timestamp_2EUR == 0)
      time_past = millis();
  }
  if (millis() - time_pasrt > 300000) {
    digitalWrite(LED, LOW);
  }

  if (i >= 30 and impulsCount == 1) {
    total_amount = total_amount + 2;
    impulsCount = 0;
    EEPROM.put(0, total_amount);
  }
  if (i >= 30 and impulsCount == 2) {
    total_amount = total_amount + 1;
    impulsCount = 0;
    EEPROM.put(0, total_amount);
  }
  if (i >= 30 and impulsCount == 3) {
    total_amount = total_amount + 0.5;
    impulsCount = 0;
    EEPROM.put(0, total_amount);
  }
  if (i >= 30 and impulsCount == 4) {
    total_amount = total_amount + 0.2;
    impulsCount = 0;
    EEPROM.put(0, total_amount);
  }
  if (i >= 30 and impulsCount == 5) {
    total_amount = total_amount + 0.1;
    impulsCount = 0;
    EEPROM.put(0, total_amount);
  }

  if (total_amount < 10) display.showNumberDecEx(total_amount * 10, 0b10000000, true, 2, 2);

time_past should be an "unsigned long" or uint32_t variable.

Neither time_past or time_pasrt (a typo?) are defined anywhere in the code you posted but it isn't a complete program so who knows what might be in whatever you haven't posted.

Steve

Is 'pasrt' a typo?