# calculateLastProofDate

> **calculateLastProofDate**(`nextChallengeEpoch`, `maxProvingPeriod`, `genesisTimestamp`): [`Date`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date) \| `null`

Defined in: [packages/synapse-core/src/utils/epoch.ts:118](https://github.com/FilOzone/synapse-sdk/blob/c40a079e2786b1efad506fc87cb8f9c0c665f565/packages/synapse-core/src/utils/epoch.ts#L118)

Calculate when the last proof should have been submitted based on current time

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `nextChallengeEpoch` | `bigint` | The next challenge epoch from the data set |
| `maxProvingPeriod` | `bigint` | The maximum proving period in epochs |
| `genesisTimestamp` | `number` | The genesis timestamp of the chain in seconds (Unix timestamp) |

## Returns

[`Date`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date) \| `null`

Date when the last proof should have been submitted, or null if no proof submitted yet