# findMaxPenetrationTime

Finds the max penetration time

## Contents

- Syntax
- Description
- Inputs
- Outputs
- Example

## Syntax

    index = findMaxPenetrationTime(loadFile,pvFile);
    index = findMaxPenetrationTime();

## Description

Function to calculate when the max penetration (PV output / load) time occurs. User inputs the load file and PV output profile, max time is calculated.

## Inputs

- `loadFile` - optional input with the link to the file with the load data
- `pvFile` - optional input with the link to the file with the PV output data

## Outputs

- `index` - the index in the array with the maximum penetration

## Example

Finds the maximum penetration time for sample files

    index = findMaxPenetrationTime('ExampleCircuit\LS_ThreePhase.txt','ExampleCircuit\PVloadshape_7_5MW_Central.txt')
    %

    index =

           19575