---
title: usageDays()
slug: usagedays
createdAt: 2022-11-02T17:51:01.000Z
---

Returns the number of days that the current person being evaluated has used a particular ChartHop feature.

Typically this will be used for measuring user activity metrics.

### Syntax

`usageDays(feature, days)`

### Parameters

| **Parameter** | **Type**                                | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `feature`     | [String](docId\:Ujw2AQAktel5uukLuP73S)  | The feature to check, available features are:<br />- `any`- any usage of any feature<br />- `home` - Home Page<br />- `org`- Org Chart<br />- `sheet`- Data Sheet<br />- `map`- Map<br />- `calendar` - Calendar<br />- `scenario`- Scenarios<br />- `report`- Dashboards<br />- `review`- Reviews and Survey management<br />- `comp_review`- Comp Reviews<br />- `profile`- Profile pages<br />- `content` - Resources pages<br />- `ai_chat` - Ask ChartHop AI |
| `days`        | [Number](docId\:ucI5tCTfVBhonEJ6ZQijg)  | The number of days back to check                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|               |                                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

### Returns

[Number](docId\:ucI5tCTfVBhonEJ6ZQijg) - the number of days

### Example

`usageDays('org', 7)`

Returns the number of days, out of the past 7 days, that the person has used the Org Chart feature of ChartHop.

