---
title: numberOfPeriods
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/skproductdiscount/numberofperiods
---

# numberOfPeriods

An integer that indicates the number of periods the product discount is available.

## Declaration

```swift
var numberOfPeriods: Int { get }
```

## Discussion

Discussion A product discount may be available for one or more periods. The period, defined in subscriptionPeriod, is a set number of days, weeks, months, or years. The total length of time that a product discount is available is calculated by multiplying the numberOfPeriods by the period. Note that the discount period is independent of the product subscription period.

## See Also

### Getting the Discount Duration

- [subscriptionPeriod](storekit/skproductdiscount/subscriptionperiod.md)
