Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

calculate Asset lifecycle remaining

shid077
Tera Contributor

How to calculate Asset lifecycle remaining in alm_asset table for a asset.

1 REPLY 1

Runjay Patel
Giga Sage

Hi @shid077 ,

 

To calculate the Asset Lifecycle Remaining for an asset , you need to consider the following key dates and lifecycle parameters:

  1. Purchase Date or Start Date: The date the asset was acquired or the lifecycle started.
  2. Expected End Date or End of Lifecycle Date: The date when the asset's lifecycle is expected to end.
  3. Current Date: Today's date.

 

Formula for Asset Lifecycle Remaining:

The lifecycle remaining can be calculated using the following formula:

Lifecycle Remaining=Expected End Date−Current Date

 

If the Expected End Date is not available, you can derive it using the Purchase Date and the Lifecycle Duration (e.g., in years).

Expected End Date=Purchase Date+Lifecycle Duration

 

You can create new filed to hold this value and write before business rule to update the ame.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------