GASP

Write-off Rate

Write-off Rate: Percentage of billable hours written off (not billed to client).

Formula

Write-off Rate = Written-off hours / Total billable hours × 100

Computable definition

The canonical formula in the GASP formula grammar. The MCP server compiles it to SQL over the datasets listed below.

sum(field.written_off_hours) / sum(field.billed_hours)

Unit: percent (the formula yields an unscaled ratio)

Data requirements

Grain: Monthly aggregate · Frequency: Monthly · Aggregation: aggregate (month) · Staged: no · Main source: PSA.

Field Dataset Type
billed_hours time_entry decimal
entry_date time_entry date
written_off_hours time_entry decimal
Example SQL (Postgres)
SELECT (CAST((SELECT COALESCE(SUM(written_off_hours), 0) FROM time_entry WHERE entry_date >= :period_start AND entry_date <= :period_end) AS DOUBLE PRECISION) / NULLIF((SELECT COALESCE(SUM(billed_hours), 0) FROM time_entry WHERE entry_date >= :period_start AND entry_date <= :period_end), 0)) AS write_off_rate

From an agent: with the GASP MCP server, call lookup_metric({ "name": "Write-off Rate" }) or generate_query({ "metric": "Write-off Rate", "adapter": "<your adapter JSON>" }).

Try searching for:

↑↓navigate↵select