---
title: suggestedCompletionTime
framework: classkit
role: symbol
role_heading: Instance Property
path: classkit/clscontext/suggestedcompletiontime
---

# suggestedCompletionTime

A suggested time range to complete a task, measured in minutes.

## Declaration

```swift
var suggestedCompletionTime: NSRange { get set }
```

## Discussion

Discussion Use this property to optionally indicate the time you expect students to need to complete the task associated with a context. The lower bound on the range indicates that you expect the task to take a least that many minutes. The upper bound indicates that you expect the task to take no more than that many minutes. For example, you can indicate that a quiz should take anywhere from 10 to 15 minutes to complete: quizContext.suggestedCompletionTime = NSRange(10...15) // A short quiz. To indicate no minimum time, provide a value of 0. To indicate no maximum time, provide the largest possible value. shortQuiz.suggestedAge = NSRange(0...10) // Up to 10 minutes. chapterTest.suggestedAge = NSRange(20...Int.max - 1) // At least 20 minutes. takeHomeExam.suggestedAge = NSRange(0...Int.max - 1) // No suggestion provided. By default, new contexts use the extreme values to avoid indicating a suggested time range. note: Because NSRange defines its upper bound as one more than the last value contained in the range, use Int.max - 1 to indicate the unbounded case and prevent the upper bound from overflowing.

## See Also

### Characterizing the context

- [suggestedAge](classkit/clscontext/suggestedage.md)
- [isAssignable](classkit/clscontext/isassignable.md)
