---
title: "EventDuration"
canonical: "https://help.innovyze.com/space/info360/15008006/EventDuration"
format: markdown
---
Outputs the total time of active events during the previous N periods of time.

| **<span style="color: #003366">Parameter</span>** | **<span style="color: #003366">Description</span>** |
| --- | --- |
| **Event Data** | Specifies the Event Data set used for the count. |
| **Period** | Number of periods prior to each time over which to sum the duration.<br>For example, when 24 is used and the viewing interval is hourly, this will sum up events over the past 24 hours. |

EventDuration = (the number of events in the past N periods) * (the viewing time interval in minutes)/60 

### Example Reference Chart:

The following example shows a chart of event instances (using EventData) and the EventDuration over the past 5 days.

![image](media://942c3dcc-562c-4aa0-be79-12a4f3d1b47e)


For information on setting up custom equations and syntax, please refer to [Analytical Functions](https://help-innovyze.atlassian.net/wiki/spaces/info360/pages/15007825).